package com.yz.food.service.impl;

import com.yz.food.dao.CategoryMapper;
import com.yz.food.pojo.Category;
import com.yz.food.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CategoryServiceImpl implements CategoryService {
    @Autowired
    private CategoryMapper categoryMapper;

    /**
     * 获取所有可用的分类
     * @return
     */
    @Override
    public List<Category> getAll() {
        return categoryMapper.getAll();
    }
}
